package br.com.testeoab.model;

import java.io.Serializable;

public class AlternativaCorreta implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4828741554459856300L;
	
	private long lngId;
	private int intIdAlternativa;
	private int intIdPergunta;
	
	public long getLngId() {
		return lngId;
	}
	public void setLngId(long lngId) {
		this.lngId = lngId;
	}
	public int getIntIdAlternativa() {
		return intIdAlternativa;
	}
	public void setIntIdAlternativa(int intIdAlternativa) {
		this.intIdAlternativa = intIdAlternativa;
	}
	public int getIntIdPergunta() {
		return intIdPergunta;
	}
	public void setIntIdPergunta(int intIdPergunta) {
		this.intIdPergunta = intIdPergunta;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + intIdAlternativa;
		result = prime * result + intIdPergunta;
		result = prime * result + (int) (lngId ^ (lngId >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AlternativaCorreta other = (AlternativaCorreta) obj;
		if (intIdAlternativa != other.intIdAlternativa)
			return false;
		if (intIdPergunta != other.intIdPergunta)
			return false;
		if (lngId != other.lngId)
			return false;
		return true;
	}
}
